package com.scalar.chiptrack.sales.parser;

import com.scalar.chiptrack.commons.Address;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * User: Sujan
 * Date: Jan 8, 2007
 * Time: 12:52:25 PM
 */
public class CustomerInfo implements Serializable
{
    private String customerName;
    private String customerNumber;
    private String shippingMethod;
    private String deliveryTerms;
    private Address billingAddress;
    private ArrayList shippingAddresses;
    private boolean distributor;
    private String contactPerson;
    private String region;
    private String shippingAccountNumber;

    public CustomerInfo()
    {

    }

    public CustomerInfo( String customerName, String customerNumber )
    {
        this.customerName   = customerName;
        this.customerNumber = customerNumber;
    }

    public String getCustomerName()
    {
        return customerName;
    }

    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerNumber()
    {
        return customerNumber;
    }

    public void setCustomerNumber(String customerNumber)
    {
        this.customerNumber = customerNumber;
    }

    public String getShippingMethod()
    {
        return shippingMethod;
    }

    public void setShippingMethod(String shippingMethod)
    {
        this.shippingMethod = shippingMethod;
    }

    public String getDeliveryTerms()
    {
        return deliveryTerms;
    }

    public void setDeliveryTerms(String deliveryTerms)
    {
        this.deliveryTerms = deliveryTerms;
    }

    public void addShippingAddress ( Address address )
    {
        if ( this.shippingAddresses == null )
        {
            this.shippingAddresses = new ArrayList();
        }
        this.shippingAddresses.add(address);
    }

    public void setShippingAddresses( ArrayList shipingAddresses )
    {
        this.shippingAddresses = shipingAddresses;
    }
    public ArrayList getShippingAddresses ()
    {
        return shippingAddresses;
    }

    public Address getBillingAddress()
    {
        return billingAddress;
    }

    public void setBillingAddress(Address billingAddress)
    {
        this.billingAddress = billingAddress;
    }

    public boolean isDistributor() {
        return distributor;
    }

    public void setDistributor(boolean distributor) {
        this.distributor = distributor;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getShippingAccountNumber() {
        return shippingAccountNumber;
    }

    public void setShippingAccountNumber(String shippingAccountNumber) {
        this.shippingAccountNumber = shippingAccountNumber;
    }
}
